package com.deuwise.system.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

/**
 * 图层管理模块实体
 *@author hezhenhao
 *@date 2020-05-20 15:41:55
 */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("SYS_LAYER")
public class SysLayer extends Model<SysLayer>  implements Serializable{
    /**主键标识*/
    @ApiModelProperty("主键标识")
    @TableField("id")
    private String id;

    /**图层ID*/
    @ApiModelProperty("图层ID")
    @TableField("layer_id")
    private String layerId;

    /**所属类型*/
    @ApiModelProperty("所属类型")
    @TableField("layer_name")
    private String layerName;

    /**版本号*/
    @ApiModelProperty("版本号")
    @TableField("version")
    private String version;

    /**图层数据*/
    @ApiModelProperty("图层数据")
    @TableField(exist = false)
    private JSONObject layerDataJson;

    /**图层数据*/
    @ApiModelProperty("图层数据")
    @TableField("layer_data_json")
    private String layerDataStr;

    /**父节点id*/
    @ApiModelProperty("父节点id")
    @TableField("parent_id")
    private String parentId;

    /**图层标题*/
    @ApiModelProperty("图层标题")
    @TableField("layer_title")
    private String layerTitle;

    @ApiModelProperty("排序")
    @TableField("order_num")
    private Integer orderNum;

    /**图层类型*/
    @ApiModelProperty("图层类型")
    @TableField("layer_type")
    private String layerType;

    @Override
    protected Serializable pkVal() {
        return null;
    }
}